package cz.fimuni.pa165.backendapi.dto;

import java.util.Arrays;

/**
 *
 * @author Lukáš Slovák
 */
public class RequestDTO {

    private String[] types;
    private String[] colours;
    private int[] numbersOfseats;
    private CompanyDTO usersCompany;

    public String[] getTypes() {
        return types;
    }

    public void setTypes(String[] types) {
        this.types = types;
    }

    public String[] getColours() {
        return colours;
    }

    public void setColours(String[] colours) {
        this.colours = colours;
    }

    public int[] getNumbersOfseats() {
        return numbersOfseats;
    }

    public void setNumbersOfseats(int[] numbersOfseats) {
        this.numbersOfseats = numbersOfseats;
    }

    public CompanyDTO getUsersCompany() {
        return usersCompany;
    }

    public void setUsersCompany(CompanyDTO usersCompany) {
        this.usersCompany = usersCompany;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 97 * hash + Arrays.deepHashCode(this.types);
        hash = 97 * hash + Arrays.deepHashCode(this.colours);
        hash = 97 * hash + Arrays.hashCode(this.numbersOfseats);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final RequestDTO other = (RequestDTO) obj;
        if (!Arrays.deepEquals(this.types, other.types)) {
            return false;
        }
        if (!Arrays.deepEquals(this.colours, other.colours)) {
            return false;
        }
        if (!Arrays.equals(this.numbersOfseats, other.numbersOfseats)) {
            return false;
        }
        return true;
    }
}
